package cn.jsl.product.mapper;

import cn.jsl.basic.mapper.BaseMapper;
import cn.jsl.product.domain.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.HashSet;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author phub
 * @since 2022-04-15
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    //上架
    void onsale(@Param("id") Long id,@Param("date") Date date);

    //下架
    void offsale(@Param("ids") HashSet<Long> ids, @Param("date") Date date);
}
